package net.jjjshop.shop.service.templ;

import net.jjjshop.common.entity.templ.Templ;
import net.jjjshop.framework.common.service.BaseService;
import net.jjjshop.framework.core.pagination.Paging;
import net.jjjshop.shop.param.CommonPageParam;
import net.jjjshop.shop.param.store.StoreParam;
import net.jjjshop.shop.param.templ.TemplParam;
import net.jjjshop.shop.vo.templ.TemplVo;

import java.util.List;
import java.util.Map;

/**
 * 模板记录表 服务类
 * @author jjjshop
 * @since 2022-07-27
 */
public interface TemplService extends BaseService<Templ> {

    /**
     * 模板分页查询
     * @param commonPageParam
     * @return
     */
    Paging<TemplVo> getList(CommonPageParam commonPageParam);

    TemplVo getTemplData(Integer templId);

    /**
     * 获取所有模板
     * @param
     * @return
     */
    List<TemplVo> getAll();

    /**
     * 添加模板
     * @param templParam
     * @return
     */
    Boolean add(TemplParam templParam);


    /**
     * 编辑模板
     * @param templParam
     * @return
     */
    Boolean edit(TemplParam templParam);

    /**
     * 软删除模板
     * @param templId
     * @return
     */
    Boolean setDelete(Integer templId);
}
